<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/tw-lp.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">tw-lp.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tw-lp_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ross_8h.html">ross.h</a>&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * @file tw-lp.c</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * @brief tw_lp_settype is defined here!</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// IMPORTANT: this function replaces tw_lp_settype</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// g_tw_lp_types must be defined</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// g_tw_lp_typemap must be defined</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="tw-lp_8c.html#a7bd8e21f4093b87f54e5054d8a028c88">   11</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-lp_8c.html#a7bd8e21f4093b87f54e5054d8a028c88">tw_lp_setup_types</a> () {</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        <span class="keywordflow">if</span> ( !<a class="code" href="ross-extern_8h.html#a35445d13971392ad2f0b904820854453">g_tw_lp_types</a> ) {</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;No LP types are defined&quot;</span>);</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        }</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;        <span class="keywordflow">if</span> ( !<a class="code" href="ross-extern_8h.html#a0319d4b8d2c3ee38dc0a65bc904043db">g_tw_lp_typemap</a> ) {</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;No LP type mapping is defined&quot;</span>);</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        }</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>; i++) {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                <a class="code" href="structtw__lp.html">tw_lp</a> *lp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i];</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;                lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a> = &amp;<a class="code" href="ross-extern_8h.html#a35445d13971392ad2f0b904820854453">g_tw_lp_types</a>[<a class="code" href="ross-extern_8h.html#a0319d4b8d2c3ee38dc0a65bc904043db">g_tw_lp_typemap</a>(lp-&gt;<a class="code" href="structtw__lp.html#a3e75d9bf7796c16870ad686564ee4c20">gid</a>)];</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="st-event-trace_8c.html#aa8f89edcf6adbbfc0b12f6376ca511c3">g_st_ev_trace</a>)</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;            <a class="code" href="st-instrumentation_8h.html#a6c7477ccc6232c784f1eea41de549884">st_model_setup_types</a>(lp);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        }</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;}</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * IMPORTANT: This function should be called after tw_define_lps.  It</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> * copies the function pointers which define the LP to the appropriate</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> * location for *each* LP, i.e. you probably want to call this more than</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> * once.</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="tw-lp_8c.html#a8ba3f617dbc434273f5ba44bf3132a6b">   38</a></span>&#160;<a class="code" href="tw-lp_8c.html#a8ba3f617dbc434273f5ba44bf3132a6b">tw_lp_settype</a>(<a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> <span class="keywordtype">id</span>, <a class="code" href="structtw__lptype.html">tw_lptype</a> * type)</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <a class="code" href="structtw__lp.html">tw_lp</a> *lp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[id];</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordflow">if</span>(<span class="keywordtype">id</span> &gt;= <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>)</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;ID %ld exceeded MAX LPs (%ld)&quot;</span>, <span class="keywordtype">id</span>, <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">if</span>(!lp || !lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP %u has no PE assigned.&quot;</span>, lp-&gt;<a class="code" href="structtw__lp.html#a3e75d9bf7796c16870ad686564ee4c20">gid</a>);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="comment">// memcpy(&amp;lp-&gt;type, type, sizeof(*type));</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a> = type;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordflow">if</span> (type-&gt;<a class="code" href="structtw__lptype.html#a1cf12b802abfdbb67ea25dd8c5921058">state_sz</a> &gt; <a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a>) {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            <a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a> = type-&gt;<a class="code" href="structtw__lptype.html#a1cf12b802abfdbb67ea25dd8c5921058">state_sz</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;}</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="tw-lp_8c.html#adafe186da3f16dcfe74c9303bcda73d5">   57</a></span>&#160;<a class="code" href="tw-lp_8c.html#adafe186da3f16dcfe74c9303bcda73d5">tw_lp_onpe</a>(<a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> <span class="keywordtype">id</span>, <a class="code" href="structtw__pe.html">tw_pe</a> * <a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a>, <a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> gid)</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keywordflow">if</span>(<span class="keywordtype">id</span> &gt;= <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>)</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;ID %d exceeded MAX LPs&quot;</span>, <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[<span class="keywordtype">id</span>])</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP already allocated: %lld\n&quot;</span>, <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[id] = (<a class="code" href="structtw__lp.html">tw_lp</a> *) <a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Local LP&quot;</span>, <span class="keyword">sizeof</span>(<a class="code" href="structtw__lp.html">tw_lp</a>), 1);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[id]-&gt;<a class="code" href="structtw__lp.html#a3e75d9bf7796c16870ad686564ee4c20">gid</a> = gid;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[id]-&gt;<a class="code" href="structtw__lp.html#a66d6671f56c8ba0ebcb1fb89354e51b4">id</a> = id;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[id]-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a> = <a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;}</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="tw-lp_8c.html#ab779ee7648ae0cf0931fce717b4401b6">   73</a></span>&#160;<a class="code" href="tw-lp_8c.html#ab779ee7648ae0cf0931fce717b4401b6">tw_lp_onkp</a>(<a class="code" href="structtw__lp.html">tw_lp</a> * lp, <a class="code" href="structtw__kp.html">tw_kp</a> * kp)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">if</span>(!lp)</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Bad LP pointer!&quot;</span>);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        lp-&gt;<a class="code" href="structtw__lp.html#a8028662b2668953fa9f49f2df7d00850">kp</a> = kp;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        kp-&gt;<a class="code" href="structtw__kp.html#a52148af5d148b7082d33f597e10989b4">lp_count</a>++;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="tw-lp_8c.html#ac66e6455900b508bb4e4e0cef4df8061">   83</a></span>&#160;<a class="code" href="tw-lp_8c.html#ac66e6455900b508bb4e4e0cef4df8061">tw_init_lps</a>(<a class="code" href="structtw__pe.html">tw_pe</a> * me)</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;{</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> i;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">int</span> j;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">for</span>(i = 0; i &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>; i++)</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                <a class="code" href="structtw__lp.html">tw_lp</a> * lp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i];</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                <span class="keywordflow">if</span> (lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a> != me)</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                        <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                <span class="comment">// Allocate initial state vector for this LP</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                <span class="keywordflow">if</span>(!lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>) {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                        lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a> = <a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;state vector&quot;</span>, lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a>-&gt;<a class="code" href="structtw__lptype.html#a1cf12b802abfdbb67ea25dd8c5921058">state_sz</a>, 1);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        lp-&gt;<a class="code" href="structtw__lp.html#a0a11fbbde67b3bc5555f659c4a20f572">lp_stats</a> = (<a class="code" href="structst__lp__stats.html">st_lp_stats</a>*) <a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP instrumentation&quot;</span>, <span class="keyword">sizeof</span>(<a class="code" href="structst__lp__stats.html">st_lp_stats</a>), 1);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordflow">for</span> (j = 0; j &lt; 3; j++)</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            lp-&gt;<a class="code" href="structtw__lp.html#ad0cecc1cf9758656d84d7189f9b41499">last_stats</a>[j] = (<a class="code" href="structst__lp__stats.html">st_lp_stats</a>*) <a class="code" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LP instrumentation&quot;</span>, <span class="keyword">sizeof</span>(<a class="code" href="structst__lp__stats.html">st_lp_stats</a>), 1);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#ifndef USE_RIO</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor"></span>                <span class="keywordflow">if</span> (lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a>-&gt;<a class="code" href="structtw__lptype.html#a279b496a139163a1c529c8db606ec4ce">init</a>)</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                        me-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a> = me-&gt;<a class="code" href="structtw__pe.html#a76e88f72d90635b512db0ba17d570e2f">abort_event</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                        me-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#a79a3d7a01afbd191b3e134cd3980fc15">caused_by_me</a> = NULL;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                        (*(<a class="code" href="ross-types_8h.html#aac61902297f5fb4a64df1e5139b14635">init_f</a>)lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a>-&gt;<a class="code" href="structtw__lptype.html#a279b496a139163a1c529c8db606ec4ce">init</a>) (lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>, lp);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                        <span class="keywordflow">if</span> (me-&gt;<a class="code" href="structtw__pe.html#a5a432d56a00d136a8ed94a309014d591">cev_abort</a>)</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;ran out of events during init&quot;</span>);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                }</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor"></span>        }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#ifdef USE_RIO</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor"></span>        <span class="comment">// RIO requires that all LPs have been allocated</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="io-mpi_8c.html#af1d7fa35920119521b98673089af3685">g_io_load_at</a> == <a class="code" href="io_8h.html#ae6e8465490ddde3e2b465c74ea774380a1203497aff5107172c74c46023ecabc4">PRE_INIT</a> || <a class="code" href="io-mpi_8c.html#af1d7fa35920119521b98673089af3685">g_io_load_at</a> == <a class="code" href="io_8h.html#ae6e8465490ddde3e2b465c74ea774380a0cb1b2c6a7db1f1084886c98909a3f36">INIT</a>) {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> start = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <a class="code" href="io-mpi_8c.html#ab5386defd555b1a62743c8b8589bf2b2">io_read_checkpoint</a>();</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        me-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.s_rio_load += (<a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="io-mpi_8c.html#af1d7fa35920119521b98673089af3685">g_io_load_at</a> != <a class="code" href="io_8h.html#ae6e8465490ddde3e2b465c74ea774380a0cb1b2c6a7db1f1084886c98909a3f36">INIT</a>) {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> start = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>; i++) {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                        <a class="code" href="structtw__lp.html">tw_lp</a> * lp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i];</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                        me-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a> = me-&gt;<a class="code" href="structtw__pe.html#a76e88f72d90635b512db0ba17d570e2f">abort_event</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                        me-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#a79a3d7a01afbd191b3e134cd3980fc15">caused_by_me</a> = NULL;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                        (*(<a class="code" href="ross-types_8h.html#aac61902297f5fb4a64df1e5139b14635">init_f</a>)lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a>-&gt;<a class="code" href="structtw__lptype.html#a279b496a139163a1c529c8db606ec4ce">init</a>) (lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>, lp);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                        <span class="keywordflow">if</span> (me-&gt;<a class="code" href="structtw__pe.html#a5a432d56a00d136a8ed94a309014d591">cev_abort</a>) {</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;ran out of events during init&quot;</span>);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                        }</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                }</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                me-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.s_rio_lp_init += (<a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        }</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="io-mpi_8c.html#af1d7fa35920119521b98673089af3685">g_io_load_at</a> == <a class="code" href="io_8h.html#ae6e8465490ddde3e2b465c74ea774380a18bff6dc11a8c32d2514cb56ea789b04">POST_INIT</a>) {</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> start = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <a class="code" href="io-mpi_8c.html#ab5386defd555b1a62743c8b8589bf2b2">io_read_checkpoint</a>();</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        me-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.s_rio_load += (<a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    }</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="tw-lp_8c.html#aab34bd3abe37a02c5a785eba6161d498">  147</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-lp_8c.html#aab34bd3abe37a02c5a785eba6161d498">tw_pre_run_lps</a> (<a class="code" href="structtw__pe.html">tw_pe</a> * me) {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> i;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keywordflow">for</span>(i = 0; i &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a> + <a class="code" href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a>; i++) {</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                <a class="code" href="structtw__lp.html">tw_lp</a> * lp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i];</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                <span class="keywordflow">if</span> (lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a> != me)</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                        <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                <span class="keywordflow">if</span> (lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a>-&gt;<a class="code" href="structtw__lptype.html#adeba8e135d6015fdc84032da224dcfd7">pre_run</a>) {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                        me-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a> = me-&gt;<a class="code" href="structtw__pe.html#a76e88f72d90635b512db0ba17d570e2f">abort_event</a>;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                        me-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#a79a3d7a01afbd191b3e134cd3980fc15">caused_by_me</a> = NULL;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                        (*(<a class="code" href="ross-types_8h.html#a00a92238994982e5b35fdb11bb058b61">pre_run_f</a>)lp-&gt;<a class="code" href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">type</a>-&gt;<a class="code" href="structtw__lptype.html#adeba8e135d6015fdc84032da224dcfd7">pre_run</a>) (lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>, lp);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                        <span class="keywordflow">if</span> (me-&gt;<a class="code" href="structtw__pe.html#a5a432d56a00d136a8ed94a309014d591">cev_abort</a>)</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                                <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;ran out of events during pre_run&quot;</span>);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;}</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="comment">/********************************************************************/</span><span class="comment">/**</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment">            LP Suspension Design Notes! (John Jenkins, ANL)</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">Many times, when developing optimistic models, we are able to</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">determine &lt; LP state, event &gt; pairs which represent infeasible model</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="comment">behavior. These types of simulation states typically arise when time</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="comment">warp causes us to receive and potentially process messages in an order</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="comment">we don&#39;t expect.</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="comment">For example, consider a client/server protocol in which a server sends</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="comment">an ACK to a client upon completion of some event. In optimistic mode,</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="comment">the client can see what amounts to duplicate ACKs from the server due</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="comment">to the server LP rolling back and re-sending an ACK.</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="comment">While some models can gracefully cope with such issues, more complex</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="comment">models can have troubles (the client in the example could for instance</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="comment">destroy the request metadata after receiving an ACK).</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="comment">A solution, as noted in the &quot;Dark Side of Risk&quot; paper, is to introduce</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment">LP &quot;self-suspend&quot; functionality. If an LP is able to detect a &lt; state,</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="comment">message &gt; pair which is incorrect / unexpected in a well-behaved</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="comment">simulation, the LP should be able to put itself into suspend mode,</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="comment">refusing to process messages until rolled back to a pre &lt; state,</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="comment">message &gt; state. There are two benefits: 1) it greatly reduces the</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="comment">difficulty in tracking down and distinguishing proper model bugs from</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="comment">bugs arising from time-warp related issues such as out-of-order event</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="comment">receipt and 2) it improves simulation performance by pruning the</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="comment">number of processed events that we know are invalid and will be rolled</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="comment">back anyways.</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="comment">I suggest the function signature tw_suspend(tw_lp *lp, int</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="comment">do_suspend_event_rc, const char * format, ...), with the following</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="comment">semantics:</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="comment">After a call to tw_suspend, all subsequent events (both forward and</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="comment">reverse) that arrive at the suspended LP shall be processed as if they</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="comment">were no-ops. The reverse event handler of the event that caused the</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="comment">suspend will be run if do_orig_event_rc is nonzero; otherwise, the</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="comment">reverse event handler shall additionally be a no-op. Typically,</span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="comment">do_orig_event_rc == 0 is desired, as good coding practices for</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="comment">moderate-or-greater complexity simulations dictate state/event</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="comment">validation prior to modifying LP state (partial rollbacks are very</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="comment">undesirable), but there may be messy logic in the user code for which</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="comment">a partial rollback is warranted (operations that free memory as a side</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="comment">effect of operations, for example).  An LP exits suspend state upon</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="comment">rolling back the event that caused the suspend (whether or not that</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment">event is processed as a no-op).  Upon GVT, if an LP is in self-suspend</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="comment">mode and the event that caused the suspend has a timestamp less than</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="comment">that of GVT, then the simulator shall report the format string of</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="comment">suspended LP(s) and exit.  A NULL format string is acceptable for</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="comment">performance purposes, e.g. when doing &quot;production&quot; simulation runs.</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">@param lp Pointer to the LP we&#39;re suspending</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="comment">@param do_orig_event_rc A bool indicating whether or not to skip the RC function</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="comment">@param error_num User-specified value for tracking purposes; ROSS ignores this</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="comment">*************************************************************************/</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="tw-lp_8c.html#ad229844ea59b6a3d9294f57bd2f99351">  227</a></span>&#160;<a class="code" href="tw-lp_8c.html#ad229844ea59b6a3d9294f57bd2f99351">tw_lp_suspend</a>(<a class="code" href="structtw__lp.html">tw_lp</a> * lp, <span class="keywordtype">int</span> do_orig_event_rc, <span class="keywordtype">int</span> error_num )</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;{</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;  <span class="keywordflow">if</span>(!lp)</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;Bad LP pointer!&quot;</span>);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;  lp-&gt;<a class="code" href="structtw__lp.html#ae11766e3b01615bae30171e735ff7e07">suspend_flag</a>=1;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;  lp-&gt;<a class="code" href="structtw__lp.html#ae20ce4f168ec2a179882101b4bbd1a6e">suspend_event</a> = lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>; <span class="comment">// only valid prior to GVT</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  lp-&gt;<a class="code" href="structtw__lp.html#aee9aa2042269d102347b762c08c43202">suspend_time</a> = <a class="code" href="ross-kernel-inline_8h.html#a543cb527662432d81f65c327e5e5f1b0">tw_now</a>(lp);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;  lp-&gt;<a class="code" href="structtw__lp.html#aa976d1a31ef6d0c3e93b39c51469f3d7">suspend_error_number</a> = error_num;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  lp-&gt;<a class="code" href="structtw__lp.html#a8d2c4500e1527356692c77a373dee093">suspend_do_orig_event_rc</a> = do_orig_event_rc;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;}</div>
<div class="ttc" id="ross-extern_8h_html_afffdf140f2c492f61546ad783833f127"><div class="ttname"><a href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a></div><div class="ttdeci">#define TW_LOC</div><div class="ttdef"><b>Definition:</b> <a href="ross-extern_8h_source.html#l00164">ross-extern.h:164</a></div></div>
<div class="ttc" id="io_8h_html_ae6e8465490ddde3e2b465c74ea774380a18bff6dc11a8c32d2514cb56ea789b04"><div class="ttname"><a href="io_8h.html#ae6e8465490ddde3e2b465c74ea774380a18bff6dc11a8c32d2514cb56ea789b04">POST_INIT</a></div><div class="ttdef"><b>Definition:</b> <a href="io_8h_source.html#l00021">io.h:21</a></div></div>
<div class="ttc" id="structtw__lptype_html_a279b496a139163a1c529c8db606ec4ce"><div class="ttname"><a href="structtw__lptype.html#a279b496a139163a1c529c8db606ec4ce">tw_lptype::init</a></div><div class="ttdeci">init_f init</div><div class="ttdoc">LP setup routine. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00088">ross-types.h:88</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a43d0a4ccc4cb71f94675a4b64a7c60c0"><div class="ttname"><a href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a></div><div class="ttdeci">tw_lp ** g_tw_lp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00026">ross-global.c:26</a></div></div>
<div class="ttc" id="structtw__lp_html_ae20ce4f168ec2a179882101b4bbd1a6e"><div class="ttname"><a href="structtw__lp.html#ae20ce4f168ec2a179882101b4bbd1a6e">tw_lp::suspend_event</a></div><div class="ttdeci">tw_event * suspend_event</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00327">ross-types.h:327</a></div></div>
<div class="ttc" id="structtw__lp_html_a0a11fbbde67b3bc5555f659c4a20f572"><div class="ttname"><a href="structtw__lp.html#a0a11fbbde67b3bc5555f659c4a20f572">tw_lp::lp_stats</a></div><div class="ttdeci">struct st_lp_stats * lp_stats</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00323">ross-types.h:323</a></div></div>
<div class="ttc" id="tw-lp_8c_html_ad229844ea59b6a3d9294f57bd2f99351"><div class="ttname"><a href="tw-lp_8c.html#ad229844ea59b6a3d9294f57bd2f99351">tw_lp_suspend</a></div><div class="ttdeci">void tw_lp_suspend(tw_lp *lp, int do_orig_event_rc, int error_num)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00227">tw-lp.c:227</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a49ed2388aaae26e43280b7909c834aaa"><div class="ttname"><a href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a></div><div class="ttdeci">void tw_error(const char *file, int line, const char *fmt,...) NORETURN</div><div class="ttdef"><b>Definition:</b> <a href="tw-util_8c_source.html#l00074">tw-util.c:74</a></div></div>
<div class="ttc" id="structtw__lp_html_a205f09ff294b6bb1f61eab7b099ebea2"><div class="ttname"><a href="structtw__lp.html#a205f09ff294b6bb1f61eab7b099ebea2">tw_lp::type</a></div><div class="ttdeci">tw_lptype * type</div><div class="ttdoc">Type of this LP, including service callbacks. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00316">ross-types.h:316</a></div></div>
<div class="ttc" id="structtw__pe_html_ac1d26b7bfd058cc55cbf5ee201edb83c"><div class="ttname"><a href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">tw_pe::stats</a></div><div class="ttdeci">tw_statistics stats</div><div class="ttdoc">per PE counters </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00415">ross-types.h:415</a></div></div>
<div class="ttc" id="io_8h_html_ae6e8465490ddde3e2b465c74ea774380a0cb1b2c6a7db1f1084886c98909a3f36"><div class="ttname"><a href="io_8h.html#ae6e8465490ddde3e2b465c74ea774380a0cb1b2c6a7db1f1084886c98909a3f36">INIT</a></div><div class="ttdef"><b>Definition:</b> <a href="io_8h_source.html#l00020">io.h:20</a></div></div>
<div class="ttc" id="aarch64_8h_html_a450cf25fa5291629087ca4198de55757"><div class="ttname"><a href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a></div><div class="ttdeci">static tw_clock tw_clock_read(void)</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00006">aarch64.h:6</a></div></div>
<div class="ttc" id="tw-lp_8c_html_a7bd8e21f4093b87f54e5054d8a028c88"><div class="ttname"><a href="tw-lp_8c.html#a7bd8e21f4093b87f54e5054d8a028c88">tw_lp_setup_types</a></div><div class="ttdeci">void tw_lp_setup_types()</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00011">tw-lp.c:11</a></div></div>
<div class="ttc" id="structtw__pe_html"><div class="ttname"><a href="structtw__pe.html">tw_pe</a></div><div class="ttdoc">Holds the entire PE state. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00375">ross-types.h:375</a></div></div>
<div class="ttc" id="structtw__lp_html_ae11766e3b01615bae30171e735ff7e07"><div class="ttname"><a href="structtw__lp.html#ae11766e3b01615bae30171e735ff7e07">tw_lp::suspend_flag</a></div><div class="ttdeci">unsigned int suspend_flag</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00331">ross-types.h:331</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ab8bd876929690758e922961bcc16cd64"><div class="ttname"><a href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a></div><div class="ttdeci">tw_lpid g_tw_nlp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00023">ross-global.c:23</a></div></div>
<div class="ttc" id="io-mpi_8c_html_af1d7fa35920119521b98673089af3685"><div class="ttname"><a href="io-mpi_8c.html#af1d7fa35920119521b98673089af3685">g_io_load_at</a></div><div class="ttdeci">io_load_type g_io_load_at</div><div class="ttdef"><b>Definition:</b> <a href="io-mpi_8c_source.html#l00021">io-mpi.c:21</a></div></div>
<div class="ttc" id="ross-extern_8h_html_acf6004787509f060f92d0edf8c2a4467"><div class="ttname"><a href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a></div><div class="ttdeci">size_t g_tw_delta_sz</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00034">ross-global.c:34</a></div></div>
<div class="ttc" id="tw-lp_8c_html_aab34bd3abe37a02c5a785eba6161d498"><div class="ttname"><a href="tw-lp_8c.html#aab34bd3abe37a02c5a785eba6161d498">tw_pre_run_lps</a></div><div class="ttdeci">void tw_pre_run_lps(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00147">tw-lp.c:147</a></div></div>
<div class="ttc" id="structtw__kp_html_a52148af5d148b7082d33f597e10989b4"><div class="ttname"><a href="structtw__kp.html#a52148af5d148b7082d33f597e10989b4">tw_kp::lp_count</a></div><div class="ttdeci">int lp_count</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00345">ross-types.h:345</a></div></div>
<div class="ttc" id="ross_8h_html_a911515dff2fb79886a16ed44df5f9d20"><div class="ttname"><a href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a></div><div class="ttdeci">uint64_t tw_lpid</div><div class="ttdef"><b>Definition:</b> <a href="ross_8h_source.html#l00160">ross.h:160</a></div></div>
<div class="ttc" id="structtw__lptype_html"><div class="ttname"><a href="structtw__lptype.html">tw_lptype</a></div><div class="ttdoc">Function Pointers for ROSS Event Handlers. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00087">ross-types.h:87</a></div></div>
<div class="ttc" id="tw-lp_8c_html_a8ba3f617dbc434273f5ba44bf3132a6b"><div class="ttname"><a href="tw-lp_8c.html#a8ba3f617dbc434273f5ba44bf3132a6b">tw_lp_settype</a></div><div class="ttdeci">void tw_lp_settype(tw_lpid id, tw_lptype *type)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00038">tw-lp.c:38</a></div></div>
<div class="ttc" id="structtw__lp_html_a8028662b2668953fa9f49f2df7d00850"><div class="ttname"><a href="structtw__lp.html#a8028662b2668953fa9f49f2df7d00850">tw_lp::kp</a></div><div class="ttdeci">tw_kp * kp</div><div class="ttdoc">kp – Kernel process that we belong to (must match pe). </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00313">ross-types.h:313</a></div></div>
<div class="ttc" id="tw-lp_8c_html_adafe186da3f16dcfe74c9303bcda73d5"><div class="ttname"><a href="tw-lp_8c.html#adafe186da3f16dcfe74c9303bcda73d5">tw_lp_onpe</a></div><div class="ttdeci">void tw_lp_onpe(tw_lpid id, tw_pe *pe, tw_lpid gid)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00057">tw-lp.c:57</a></div></div>
<div class="ttc" id="structtw__lp_html_a8d2c4500e1527356692c77a373dee093"><div class="ttname"><a href="structtw__lp.html#a8d2c4500e1527356692c77a373dee093">tw_lp::suspend_do_orig_event_rc</a></div><div class="ttdeci">unsigned int suspend_do_orig_event_rc</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00330">ross-types.h:330</a></div></div>
<div class="ttc" id="structtw__lp_html_ad0cecc1cf9758656d84d7189f9b41499"><div class="ttname"><a href="structtw__lp.html#ad0cecc1cf9758656d84d7189f9b41499">tw_lp::last_stats</a></div><div class="ttdeci">struct st_lp_stats * last_stats[3]</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00324">ross-types.h:324</a></div></div>
<div class="ttc" id="specialized-lps_8c_html_abaecb255233b735460c8b9836547041e"><div class="ttname"><a href="specialized-lps_8c.html#abaecb255233b735460c8b9836547041e">g_st_analysis_nlp</a></div><div class="ttdeci">tw_lpid g_st_analysis_nlp</div><div class="ttdef"><b>Definition:</b> <a href="specialized-lps_8c_source.html#l00012">specialized-lps.c:12</a></div></div>
<div class="ttc" id="structtw__kp_html"><div class="ttname"><a href="structtw__kp.html">tw_kp</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00340">ross-types.h:340</a></div></div>
<div class="ttc" id="structst__lp__stats_html"><div class="ttname"><a href="structst__lp__stats.html">st_lp_stats</a></div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00150">st-instrumentation.h:150</a></div></div>
<div class="ttc" id="structtw__lp_html_aee9aa2042269d102347b762c08c43202"><div class="ttname"><a href="structtw__lp.html#aee9aa2042269d102347b762c08c43202">tw_lp::suspend_time</a></div><div class="ttdeci">tw_stime suspend_time</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00328">ross-types.h:328</a></div></div>
<div class="ttc" id="structtw__lp_html_a3e75d9bf7796c16870ad686564ee4c20"><div class="ttname"><a href="structtw__lp.html#a3e75d9bf7796c16870ad686564ee4c20">tw_lp::gid</a></div><div class="ttdeci">tw_lpid gid</div><div class="ttdoc">global LP id </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00306">ross-types.h:306</a></div></div>
<div class="ttc" id="structtw__pe_html_a76e88f72d90635b512db0ba17d570e2f"><div class="ttname"><a href="structtw__pe.html#a76e88f72d90635b512db0ba17d570e2f">tw_pe::abort_event</a></div><div class="ttdeci">tw_event * abort_event</div><div class="ttdoc">Placeholder event for when free_q is empty. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00384">ross-types.h:384</a></div></div>
<div class="ttc" id="ross-kernel-inline_8h_html_a543cb527662432d81f65c327e5e5f1b0"><div class="ttname"><a href="ross-kernel-inline_8h.html#a543cb527662432d81f65c327e5e5f1b0">tw_now</a></div><div class="ttdeci">static tw_stime tw_now(tw_lp const *lp)</div><div class="ttdef"><b>Definition:</b> <a href="ross-kernel-inline_8h_source.html#l00080">ross-kernel-inline.h:80</a></div></div>
<div class="ttc" id="structtw__pe_html_aa172b398c08f6cb989cf2449adb06a12"><div class="ttname"><a href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">tw_pe::cur_event</a></div><div class="ttdeci">tw_event * cur_event</div><div class="ttdoc">Current event being processed. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00385">ross-types.h:385</a></div></div>
<div class="ttc" id="tw-lp_8c_html_ab779ee7648ae0cf0931fce717b4401b6"><div class="ttname"><a href="tw-lp_8c.html#ab779ee7648ae0cf0931fce717b4401b6">tw_lp_onkp</a></div><div class="ttdeci">void tw_lp_onkp(tw_lp *lp, tw_kp *kp)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00073">tw-lp.c:73</a></div></div>
<div class="ttc" id="io-mpi_8c_html_ab5386defd555b1a62743c8b8589bf2b2"><div class="ttname"><a href="io-mpi_8c.html#ab5386defd555b1a62743c8b8589bf2b2">io_read_checkpoint</a></div><div class="ttdeci">void io_read_checkpoint()</div><div class="ttdef"><b>Definition:</b> <a href="io-mpi_8c_source.html#l00112">io-mpi.c:112</a></div></div>
<div class="ttc" id="structtw__lp_html_aa976d1a31ef6d0c3e93b39c51469f3d7"><div class="ttname"><a href="structtw__lp.html#aa976d1a31ef6d0c3e93b39c51469f3d7">tw_lp::suspend_error_number</a></div><div class="ttdeci">unsigned int suspend_error_number</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00329">ross-types.h:329</a></div></div>
<div class="ttc" id="structtw__event_html_a79a3d7a01afbd191b3e134cd3980fc15"><div class="ttname"><a href="structtw__event.html#a79a3d7a01afbd191b3e134cd3980fc15">tw_event::caused_by_me</a></div><div class="ttdeci">tw_event * caused_by_me</div><div class="ttdoc">Start of event list caused by this event. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00261">ross-types.h:261</a></div></div>
<div class="ttc" id="ross-types_8h_html_aac61902297f5fb4a64df1e5139b14635"><div class="ttname"><a href="ross-types_8h.html#aac61902297f5fb4a64df1e5139b14635">init_f</a></div><div class="ttdeci">void(* init_f)(void *sv, tw_lp *me)</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00072">ross-types.h:72</a></div></div>
<div class="ttc" id="structtw__lptype_html_a1cf12b802abfdbb67ea25dd8c5921058"><div class="ttname"><a href="structtw__lptype.html#a1cf12b802abfdbb67ea25dd8c5921058">tw_lptype::state_sz</a></div><div class="ttdeci">size_t state_sz</div><div class="ttdoc">Number of bytes that SV is for the LP. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00095">ross-types.h:95</a></div></div>
<div class="ttc" id="ross-types_8h_html_a00a92238994982e5b35fdb11bb058b61"><div class="ttname"><a href="ross-types_8h.html#a00a92238994982e5b35fdb11bb058b61">pre_run_f</a></div><div class="ttdeci">void(* pre_run_f)(void *sv, tw_lp *me)</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00076">ross-types.h:76</a></div></div>
<div class="ttc" id="st-instrumentation_8h_html_a6c7477ccc6232c784f1eea41de549884"><div class="ttname"><a href="st-instrumentation_8h.html#a6c7477ccc6232c784f1eea41de549884">st_model_setup_types</a></div><div class="ttdeci">void st_model_setup_types(tw_lp *lp)</div><div class="ttdef"><b>Definition:</b> <a href="st-model-data_8c_source.html#l00010">st-model-data.c:10</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a0319d4b8d2c3ee38dc0a65bc904043db"><div class="ttname"><a href="ross-extern_8h.html#a0319d4b8d2c3ee38dc0a65bc904043db">g_tw_lp_typemap</a></div><div class="ttdeci">tw_typemap_f g_tw_lp_typemap</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00102">ross-global.c:102</a></div></div>
<div class="ttc" id="ross_8h_html"><div class="ttname"><a href="ross_8h.html">ross.h</a></div></div>
<div class="ttc" id="tw-lp_8c_html_ac66e6455900b508bb4e4e0cef4df8061"><div class="ttname"><a href="tw-lp_8c.html#ac66e6455900b508bb4e4e0cef4df8061">tw_init_lps</a></div><div class="ttdeci">void tw_init_lps(tw_pe *me)</div><div class="ttdef"><b>Definition:</b> <a href="tw-lp_8c_source.html#l00083">tw-lp.c:83</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a35445d13971392ad2f0b904820854453"><div class="ttname"><a href="ross-extern_8h.html#a35445d13971392ad2f0b904820854453">g_tw_lp_types</a></div><div class="ttdeci">tw_lptype * g_tw_lp_types</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00101">ross-global.c:101</a></div></div>
<div class="ttc" id="structtw__lp_html_a9fd32632e5c45a00faf16a6fd0814640"><div class="ttname"><a href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">tw_lp::pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00308">ross-types.h:308</a></div></div>
<div class="ttc" id="io_8h_html_ae6e8465490ddde3e2b465c74ea774380a1203497aff5107172c74c46023ecabc4"><div class="ttname"><a href="io_8h.html#ae6e8465490ddde3e2b465c74ea774380a1203497aff5107172c74c46023ecabc4">PRE_INIT</a></div><div class="ttdef"><b>Definition:</b> <a href="io_8h_source.html#l00019">io.h:19</a></div></div>
<div class="ttc" id="structtw__lp_html_a66d6671f56c8ba0ebcb1fb89354e51b4"><div class="ttname"><a href="structtw__lp.html#a66d6671f56c8ba0ebcb1fb89354e51b4">tw_lp::id</a></div><div class="ttdeci">tw_lpid id</div><div class="ttdoc">local LP id </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00305">ross-types.h:305</a></div></div>
<div class="ttc" id="avl__tree_8c_html_ac4c639748d4d5a271d6c54a18f614605"><div class="ttname"><a href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdef"><b>Definition:</b> <a href="avl__tree_8c_source.html#l00011">avl_tree.c:11</a></div></div>
<div class="ttc" id="aarch64_8h_html_abcd6b97b84bebf1f961f85cd24b56c60"><div class="ttname"><a href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a></div><div class="ttdeci">uint64_t tw_clock</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00004">aarch64.h:4</a></div></div>
<div class="ttc" id="structtw__lp_html_a34fb8e673f23705156b2473503e8a2d5"><div class="ttname"><a href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">tw_lp::cur_state</a></div><div class="ttdeci">void * cur_state</div><div class="ttdoc">Current application LP data. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00315">ross-types.h:315</a></div></div>
<div class="ttc" id="st-event-trace_8c_html_aa8f89edcf6adbbfc0b12f6376ca511c3"><div class="ttname"><a href="st-event-trace_8c.html#aa8f89edcf6adbbfc0b12f6376ca511c3">g_st_ev_trace</a></div><div class="ttdeci">int g_st_ev_trace</div><div class="ttdef"><b>Definition:</b> <a href="st-event-trace_8c_source.html#l00003">st-event-trace.c:3</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a445b1ed30cd2e8ef1f837e782a339a70"><div class="ttname"><a href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70">tw_calloc</a></div><div class="ttdeci">void * tw_calloc(const char *file, int line, const char *for_who, size_t e_sz, size_t n)</div><div class="ttdef"><b>Definition:</b> <a href="tw-util_8c_source.html#l00203">tw-util.c:203</a></div></div>
<div class="ttc" id="structtw__lptype_html_adeba8e135d6015fdc84032da224dcfd7"><div class="ttname"><a href="structtw__lptype.html#adeba8e135d6015fdc84032da224dcfd7">tw_lptype::pre_run</a></div><div class="ttdeci">pre_run_f pre_run</div><div class="ttdoc">Second stage LP initialization. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00089">ross-types.h:89</a></div></div>
<div class="ttc" id="structtw__pe_html_a5a432d56a00d136a8ed94a309014d591"><div class="ttname"><a href="structtw__pe.html#a5a432d56a00d136a8ed94a309014d591">tw_pe::cev_abort</a></div><div class="ttdeci">unsigned char cev_abort</div><div class="ttdoc">Current event being processed must be aborted. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00399">ross-types.h:399</a></div></div>
<div class="ttc" id="structtw__lp_html"><div class="ttname"><a href="structtw__lp.html">tw_lp</a></div><div class="ttdoc">LP State Structure. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00304">ross-types.h:304</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
